<?php
class Loader{
  //var $params=array();
  var $acts;
  var $coms;
  public function Loader($com,$act,$param){
    $this->coms=$com;
    $this->acts=$act;
    $this->params=explode('|',$param);
    $this->loadClasses();
  }
  public function loadClasses(){
    include('com/'.$this->coms .'/index.php');
    $this->coms=str_replace(array(' ','%20','_','-','-'),array('','','','',''),$this->coms);
    
   # print($this->coms);exit;
    $comName=ucwords($this->coms.'Main');
    eval('$com=new  '.$comName.'($this->acts,$this->params);');
      
  }
} 

?>
